from selenium.webdriver.common.by import By

from BasePage import BasePage


class BingPage(BasePage):
    # 页面元素
    search_location = (By.ID, "sb_form_q")
    search_btn = (By.CSS_SELECTOR, "#search_icon > svg")

    def search_content(self, content):
        # self.find_element(*self.search_location).input(content)
        self.input(self.search_location, content)

    def search_click(self):
        self.find_element(*self.search_btn).click()

